<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ attribute name="label" required="true" rtexprvalue="false"%>
<%@ attribute name="id" required="true" rtexprvalue="false"%>
<%@ attribute name="mandatory" required="false" rtexprvalue="false"%>
<div class="formColumn">
 <div class="formLabel">
  <c:if test="${empty mandatory}">
   <form:label path="${id}" class="normal">
    <span class="normal"><spring:message code="${label}" /></span>
   </form:label>
  </c:if>
  <c:if test="${not empty mandatory}">
   <form:label path="${id}" class="mandatory">
    <spring:message code="${label}" />
    <span class="redStar">*</span>
   </form:label>
  </c:if>
 </div>
 <div class="formField">
  <form:password path="${id}" />
 </div>
</div>